// 用于主页面通用内容
import Main from '@/views/main.vue';
// 用于二级页面的内容
import SubMain from '@/views/sub-main.vue';

export default {
	path: '/stock',
	name: 'stock',
	redirect: '/stock/supply/demo',
	meta: {
		title: '库存',
		icon: 'logo-dropbox'
	},
    component: Main,
    children: [
		{
			path: 'supply',
			name: 'stock_supply',
			meta: {
				title: '供应'
			},
			component: SubMain,
			children: [
				{
					path: 'demo',
					name: 'stock_supply_demo',
					meta: {
						title: '测试地址',
						disabled: true
					},
					component: resolve => {
						require(['@/views/stock/supply/demo/index.vue'], resolve)
					}
				}
			]
		}
    ]
}
